package com.teamblueplus.editor;

import com.teamblueplus.R;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class ImageEdit extends Activity implements OnClickListener{
    private Button effectButton;
    private Button saveButton;
    private ImageView imageView;
    private TextView fileName;
    
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.image_edit);
		
		// get image path from extra
		Intent intent = getIntent();
		String filePath = intent.getExtras().getString("filePath");
		
		Bitmap myBitmap = BitmapFactory.decodeFile(filePath);

		imageView = (ImageView) findViewById(R.id.ivImage);
		imageView.setImageBitmap(myBitmap);

        effectButton = (Button) findViewById(R.id.bEffect);
        saveButton = (Button) findViewById(R.id.bSave);

        effectButton.setOnClickListener(this);
        saveButton.setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {

		case R.id.bEffect: // pop up list of effects
			break;

		case R.id.bSave:
			break;


		}
		
	}
}
